<?php
class Contact_us_model extends MY_Model
{
	function __construct()
	{
		parent::__construct();

		$this->fields = array(
			'id'		 		=> '',
			'your_name' 		=> T_('Your Name'),
			'phone' 		=> T_('Phone Number'),
			'email' 			=> T_('E-Mail'),		
			'concerning' 		=> T_('Concerning?'),
			'preferred_contact' => T_('Preferred Contact'),
            'message'           => T_('Message'),
		);
		

		$this->rules = array(
			'your_name'			=> "trim|required|max_length[255]",
			'phone' 			=> "trim|max_length[64]",			
			'email' 			=> "trim|required|valid_email|max_length[64]",
			'concerning' 		=> "trim|required|is_natural_no_zero",
			'preferred_contact' => "trim|required|is_natural_no_zero",
            'message'           => "trim|required|max_length[255]",
		);
	}

	/*
			'phone' 		=> "trim|callback___phoneFree",
			
		);
	}
	*/
}
?>